package com.mdlib.helper.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ljlib.help.R;
import com.mdlib.helper.model.entity.TimeEntity;

import java.util.List;

/**
 * 作者：HQY on 16/11/21 11:04
 * 邮箱：hqy_xz@126.com
 */

public class TextAdapter extends BaseQuickAdapter<TimeEntity> {


    public TextAdapter(List<TimeEntity> data) {
        super(R.layout.item_time, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, TimeEntity timeEntity) {
        baseViewHolder.setText(R.id.tv_success_time, timeEntity.getTime());

//        baseViewHolder.setChecked(R.id.ll_time_bg, timeEntity.isSelected());

        baseViewHolder.getView(R.id.ll_time_bg).setSelected(timeEntity.isSelected());
//
    }
}
